<script setup>
const props = defineProps({
  title: String,
});
</script>

<template>
  <el-card>
    <template #header>
      <div class="card-header">
        <span>{{ props.title }}</span>
        <slot name="extra"></slot>
      </div>
    </template>
    <slot></slot>
  </el-card>
</template>

<style scoped lang="scss">
.el-card {
  height: 100%;
  padding-bottom: 70px !important;
  box-sizing: border-box !important;
  position: relative;
  .card-header {
    display: flex;
    justify-content: space-between;
  }
}
</style>
